﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="equqtop.aspx.cs" Inherits="jnlamp.Web.mobile.equqtop" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>杀虫灯系统平台</title>
    <link rel="stylesheet" type="text/css" href="easyui/themes/metro/easyui.css" />
    <link rel="stylesheet" type="text/css" href="easyui/themes/mobile.css" />
    <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css" />
    <script type="text/javascript" src="easyui/jquery.min.js"></script>
    <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="easyui/jquery.easyui.mobile.js"></script>
    <script src="easyui/locale/easyui-lang-zh_CN.js"></script>
    <script src="../Script/datetime.js"></script>
    <script src="js/mobile.js"></script>
    <script type="text/javascript">
        $(function () {
            initMenu();
          
        });
        function loadXMLDoc(opt) {

            var gprs_id = $.trim($("#txt_gprs_id").val());

            if (typeof (gprs_id) == "undefined" || gprs_id == "") {
                $.messager.alert("提示", "请输入网关号！", "info");
                return;
            }

            $.ajax({
                type: "post",
                dataType: "text",
                url: "../api/hanlder.ashx?action=AddGPRS&opt=" + opt + "&gprs_id=" + gprs_id,
                success: function aa(data) {
                    if (null != data && "[]" != data) {
                        $.messager.alert("提示", "添加成功！", "info");
                        location.href = "listOp.aspx?gprs_id=" + gprs_id;
                    }

                }
            });

        }
        function selc() {
            var gprs_id = $.trim($("#txt_gprs_id").val());

            if (typeof (gprs_id) == "undefined" || gprs_id == "") {
                $.messager.alert("提示", "请输入网关号！", "info");
                return;
            }

            location.href = "listOp.aspx?gprs_id=" + gprs_id;
        }
    </script>
</head>
<body>

    <div class="easyui-navpanel" fit="true">
        <header>
            <div class="m-toolbar">
                <div class="m-title">群体操作</div>
            </div>
        </header>

        <ul class="m-list">
            <li>
                <input id="txt_gprs_id" class="easyui-textbox" style="width: 88%;" data-options=" label: '网关号:',labelPosition: 'top'"/>
                <input type="button" value="查找" onclick="selc()" style="width: 12%"/>
            </li>

        </ul>
        <div class="easyui-navpanel" style="text-align: center;">
            <a href="#" onclick="loadXMLDoc('OPEN01')" class="easyui-linkbutton" style="width: 80%;  margin-top: 5px"><span style="font-size: 14px">全体开灯</span></a>
            <a href="#" onclick="loadXMLDoc('OPEN02')" class="easyui-linkbutton" style="width: 80%;  margin-top: 5px"><span style="font-size: 14px">全体关灯</span></a>
            <a href="#" onclick="loadXMLDoc('OPEN03')" class="easyui-linkbutton" style="width: 80%;  margin-top: 5px"><span style="font-size: 14px">奇数开灯</span></a>
            <a href="#" onclick="loadXMLDoc('OPEN04')" class="easyui-linkbutton" style="width: 80%;  margin-top: 5px"><span style="font-size: 14px">偶数开灯</span></a>
            <a href="#" onclick="loadXMLDoc('OPEN05')" class="easyui-linkbutton" style="width: 80%;  margin-top: 5px"><span style="font-size: 14px">1/3开灯</span></a>
            <a href="#" onclick="loadXMLDoc('OPEN06')" class="easyui-linkbutton" style="width: 80%;  margin-top: 5px"><span style="font-size: 14px">1/4开灯</span></a>
            <a href="#" onclick="loadXMLDoc('OPEN09')" class="easyui-linkbutton" style="width: 80%; margin-top: 5px"><span style="font-size: 14px">长期关闭</span></a>
            <a href="#" onclick="loadXMLDoc('RESET')" class="easyui-linkbutton" style="width: 80%;  margin-top: 5px"><span style="font-size: 14px">恢复出厂</span></a>
        </div>


        <footer>
            <div class="m-buttongroup m-buttongroup-justified" style="width: 100%">
                <a id="mymain" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-large-chart',size:'large',iconAlign:'top',plain:true">查看设备</a>
                <a id="equqtop" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-large-clipart',size:'large',iconAlign:'top',plain:true">群体操作</a>
                 <a  href="/mobile/equsdsz.aspx" class="easyui-linkbutton" data-options="iconCls:'icon-large-shapes',size:'large',iconAlign:'top',plain:true">单灯/时段设置</a>
                <a id="myexist" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-large-smartart',size:'large',iconAlign:'top',plain:true">退出</a>
            </div>
        </footer>

    </div>


</body>
</html>
